import {
  SetCodeOff
} from './_action';

const stateData = {
  SetCodeOff: false,
};

export function Contract(state = stateData, action) {
  switch (action.type) {
    case 'SetCodeOff':
      var newState = JSON.parse(JSON.stringify(state));
      newState.SetCodeOff = action.SetCodeOff;
      return newState;
    default:
      return state;
  }
}
